package com.vincent.kdp.ui.vip.repository;

import com.loopj.android.http.RequestParams;
import com.vincent.kdp.PostUrl;
import com.vincent.kdp.http.HttpUtil;
import com.vincent.kdp.http.RequestCallBack;
import com.vincent.kdp.ui.bean.response.VipInfoOutput;
import com.vincent.kdp.util.BaseParam;

public class VipDetailRepository {

    /**
     * 获取vip信息
     *
     * @param vipAccount vip账号
     * @param callBack   回调方法
     */
    public void reqVipInfo(String vipAccount, RequestCallBack callBack) {
        RequestParams params = new RequestParams();
        params.put("phoneOrCard", vipAccount);
        params.put("number", BaseParam.getDeviceId());

        HttpUtil.loadData(PostUrl.GET_VIP_INFO, params, VipInfoOutput.class, callBack);
    }
}
